public class ObjectChangeValue {
    public static class Score{
        private int value;

        public int getValue()  {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }
    }

    public static void main(String[] args) {
        Score score = new Score();
        score.setValue(1);
        System.out.println("args = [" + score.getValue() + "]");
        change(score);
        System.out.println("after args = [" + score.getValue() + "]");
    }

    private static void change(Score score){
        score.setValue(2);
    }
}
